package com.yzf.wisecoder.wisecoderstorage.mysql.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yzf.wisecoder.wisecoderstorage.mysql.entity.RoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author jianghuiyong
 * @email jianghuiyong@yunzhangfang.com
 * @date 2020-05-06 17:43:12
 */
@Mapper
public interface RoleDao extends BaseMapper<RoleEntity> {

    /**
     * 查询用户角色信息
     *
     * @param userId
     * @param tenantId
     * @return
     */
    List<RoleEntity> queryUserRoles(@Param("userId") Long userId, @Param("tenantId") Long tenantId);
}
